#include "constant.h"
namespace dymy
{
    extern const int REP_CODE_SUCCESS = 2000;
    extern const std::string REP_MESSAGE_SUCCESS = "success";

    extern const int REP_CODE_ERROR_UNKNOW = 3000;
    extern const std::string REP_MESSAGE_ERROR_UNKNOW = "未知错误";

    extern const int REP_CODE_ERROR_USER_EXISTS = 3001;
    extern const std::string REP_MESSAGE_ERROR_USER_EXISTS = "该用户名已经存在";

    extern const int REP_CODE_ERROR_FULL_USERS = 3002;
    extern const std::string REP_MESSAGE_ERROR_FULL_USERS = "注册用户已满，请期待更多用户";

    extern const int REP_CODE_ERROR_INVALID_USER_NAME = 3003;
    extern const std::string REP_MESSAGE_ERROR_INVALID_USER_NAME = "该用户不存在";

    extern const int REP_CODE_ERROR_INVALID_USER_PASSWORD = 3004;
    extern const std::string REP_MESSAGE_ERROR_INVALID_USER_PASSWORD = "密码错误";

    extern const int REP_CODE_ERROR_INVALID_TABLE_ID = 3005;
    extern const std::string REP_MESSAGE_ERROR_INVALID_TABLE_ID = "该牌桌不存在";

    extern const int REP_CODE_ERROR_INVALID_TABLE_INDEX = 3006;
    extern const std::string REP_MESSAGE_ERROR_INVALID_TABLE_INDEX = "牌桌位置错误";

    extern const int REP_CODE_ERROR_TABLE_INDEX_BUSY = 3007;
    extern const std::string REP_MESSAGE_ERROR_TABLE_INDEX_BUSY = "牌桌位置已经有人";

    extern const int REP_CODE_ERROR_TABLE_NOT_EXISTS_USER = 3008;
    //    extern const std::string REP_MESSAGE_ERROR_TABLE_NOT_EXISTS_USER = "该位置不存在该用户";
    //    extern const std::string REP_MESSAGE_ERROR_TABLE_NOT_EXISTS_USER ="该位置不存在该用户";

    extern const std::string REP_MESSAGE_ERROR_TABLE_NOT_EXISTS_USER = "位置不存在该用户";

    extern const int REP_CODE_ERROR_TABLE_INVALID_PROCESS = 3009;
    //    extern const std::string REP_MESSAGE_ERROR_TABLE_INVALID_PROCESS = "牌桌流程错误";
    extern const std::string REP_MESSAGE_ERROR_TABLE_INVALID_PROCESS = "牌桌流程错误";

    extern const int REP_CODE_ERROR_TABLE_NOT_SELF = 3010;
    //    extern const std::string REP_MESSAGE_ERROR_TABLE_NOT_SELF = "还没轮到你操作";
    extern const std::string REP_MESSAGE_ERROR_TABLE_NOT_SELF = "没轮到你操作";

    extern const int REP_CODE_ERROR_TABLE_ALREADY_PREPARED = 3011;
    //    extern const std::string REP_MESSAGE_ERROR_TABLE_ALREADY_PREPARED_OR_NOT_PREPARED = "你已经处于该(准备或空闲)状态了";
    extern const std::string REP_MESSAGE_ERROR_TABLE_ALREADY_PREPARED = "你已经处于准备了";

    extern const int REP_CODE_ERROR_TABLE_ALREADY_NOT_PREPARED = 3012;
    //    extern const std::string REP_MESSAGE_ERROR_TABLE_ALREADY_PREPARED_OR_NOT_PREPARED = "你已经处于该(准备或空闲)状态了";
    extern const std::string REP_MESSAGE_ERROR_TABLE_ALREADY_NOT_PREPARED = "你已经处于空闲了";

    extern const int REP_CODE_ERROR_TABLE_ALREADY_JOIN = 3013;
    extern const std::string REP_MESSAGE_ERROR_TABLE_ALREADY_JOIN = "你已经在这个座位上了";

    extern const int REP_CODE_ERROR_TABLE_NOT_JOIN = 3014;
    //    extern const std::string REP_MESSAGE_ERROR_TABLE_NOT_JOIN = "你还不在这个桌子上";
    extern const std::string REP_MESSAGE_ERROR_TABLE_NOT_JOIN = "你还不在这个牌桌";

    extern const int REP_CODE_ERROR_TABLE_INVALID_CARDS = 3015;
    extern const std::string REP_MESSAGE_ERROR_TABLE_INVALID_CARDS = "出牌错误";

    extern const int REP_CODE_ERROR_LOGIN_REPLACE = 3016;
    extern const std::string REP_MESSAGE_ERROR_LOGIN_REPLACE = "异地登录";

    extern const int REP_CODE_ERROR_TABLE_REPEAT_JOIN = 3017;
    extern const std::string REP_MESSAGE_ERROR_TABLE_REPEAT_JOIN = "已经有加入过的牌桌了";

    extern const int REP_CODE_ERROR_SQL = 3200;
    extern const std::string REP_MESSAGE_ERROR_SQL = "数据库操作失败";

    extern const int REP_CODE_ERROR_LOGIN_INVALID_TOKEN = 3300;
    extern const std::string REP_MESSAGE_ERROR_LOGIN_INVALID_TOKEN = "token校验失败";
}
